<!--三栏开启后左边通用导航部分-->
<!--{eval $_costr = LEFTNAV=='none' ? '打开' : '关闭';$_cocss = LEFTNAV=='none' ? ' fb-open" style="left:-130px;' : ''}-->
<div id="topic_index_left_ajax_list" class="fixedLeft{$_cocss}" style="_height:950px;">
<div class="leftNav">
<!--{if $my_member || $member}-->
<!--{eval $_mymember = $my_member ? $my_member : $member}-->
<!--{/if}-->
	  <div class="blackBox"></div>
	  <ul class="leftNav_main">
		  <!--{eval $slide = ConfigHandler::get('left_navigation');}-->
		  <!--{loop $slide[mine] $one}-->
		  <!--{if $one['avaliable']}-->
		  
		  <!--{eval $one[icon] = $one[icon]?$one[icon]:'./images/lefticon/left_define_icon.png';}-->
		  <!--{eval $one[url]=jurl(str_replace('%uid%',MEMBER_ID,$one[url]));}-->
		  <li class="{$one[code]}"> 
		  <a href="{$one[url]}#{$one[code]}" hidefocus="true" title="{$one[name]}" target="{$one[target]}"><i></i><img src="{$one[icon]}">{$one[name]}</a>
		  </li>
		  
		  <!--{/if}-->
		  <!--{/loop}-->
		  
		<!--#if NEDU#-->
		<!--{if defined('NEDU_MOYO')}-->
			<!--{echo nui('jsg')->hook('topic.member.left.inc.nav');}-->
		<!--{/if}-->
		<!--#endif#-->
		<!--{hook/global_left_nav1}-->
        </ul>
        
        <div class="blackBox"></div>
        <ul class="leftNav_sub">
		 
		  <!--{loop $slide[myapp] $one}-->
		  <!--{if $one['avaliable']}-->
		  
		  <!--{eval $one[icon] = $one[icon]?$one[icon]:'./images/lefticon/left_define_icon.png';}-->
		  <!--{eval $one[url]=jurl(str_replace('%uid%',MEMBER_ID,$one[url]));}-->
		  
		  <!--{if $one[code]=='mypub'||$one[code]=='myprofile'}-->
		  
		  <!--{if ($this->Config['channel_enable']&&$one[code]=='mypub')||($this->Config['qun_setting']["qun_open"]&&$one[code]=='myprofile')}-->
		  <li class="{$one[code]}"> 
          
		  <a href="{$one[url]}#{$one[code]}" hidefocus="true" title="{$one[name]}" target="{$one[target]}"><i></i><img src="{$one[icon]}">{$one[name]}</a>
		  </li>
		  <!--{/if}-->
		  
		  <!--{else}-->
		  
		  <li class="{$one[code]}"> 
		  <a href="{$one[url]}#{$one[code]}" hidefocus="true" title="{$one[name]}" target="{$one[target]}"><i></i><img src="{$one[icon]}">{$one[name]}</a>
		  </li>
		  
		  <!--{/if}-->
		  
		  <!--{/if}-->
		  <!--{/loop}-->
		  
		
		<!--{if $this->Config[company_enable]}-->
		<li class="c_name"> 
		  <a href="index.php?mod=company#c_name" hidefocus="true" title="我的{$d_c_name}">我的{$d_c_name}<i></i><img src="./images/lefticon/left_define_icon.png" style="margin-left:-72px;"></a>
		</li>
		<!--{if $this->Config[department_enable]}-->
		<li class="d_name"> 
		  <a href="index.php?mod=department#d_name" hidefocus="true" title="我的{$d_d_name}">我的{$d_d_name}<i></i><img src="./images/lefticon/left_define_icon.png" style="margin-left:-72px;"></a>
		</li>
		<!--{/if}-->
		<li class="l_name"> 
		  <a href="index.php?mod=company&code=list#l_name" hidefocus="true" title="{$d_c_name}目录">{$d_c_name}目录<i></i><img src="./images/lefticon/left_define_icon.png" style="margin-left:-72px;"></a>
		</li>
		<!--{/if}-->
		<!--{hook/global_left_nav2}-->
	  </ul>

	  <div class="blackBox"></div>
		<ul class="leftNav_sub" {if defined('NEDU_MOYO') && MEMBER_ID == $_mymember[uid]}style="display:none;"{/if} >
			
			
		<!--{loop $slide[app] $one}-->
		<!--{if $one['avaliable']}-->
		  <!--{eval $one[icon] = $one[icon]?$one[icon]:'./images/lefticon/left_define_icon.png';}-->
		  <!--{eval $one[url]=jurl(str_replace('%uid%',MEMBER_ID,$one[url]));}-->
		  
		  <!--{if $one[code]=='myvote'||$one[code]=='myreward'||$one[code]=='myatt'||$one[code]=='myact'}-->
		  
		  <!--{if ($this->Config['event_open']&&$one[code]=='myact')||($this->Config['vote_open']&&$one[code]=='myvote')||($this->Config['reward_open']&&$one[code]=='myreward')||($this->Config['reward_open']&&$one[code]=='myreward')||(($this->Config['attach_enable']||$this->Config['qun_attach_enable'])&&$one[code]=='myatt')}-->
		  <li class="{$one[code]}"> 
		  <a href="{$one[url]}#{$one[code]}" hidefocus="true" title="{$one[name]}" target="{$one[target]}"><i></i><img src="{$one[icon]}">{$one[name]}</a>
		  </li>
		  <!--{/if}-->
		  
		  <!--{else}-->
		  
		  <li class="{$one[code]}"> 
		  <a href="{$one[url]}#{$one[code]}" hidefocus="true" title="{$one[name]}" target="{$one[target]}"><i></i><img src="{$one[icon]}">{$one[name]}</a>
		  </li>
		  
		  <!--{/if}-->
		  
		  <!--{/if}-->
		  <!--{/loop}-->	
			
		<!--{eval $navigation_config=ConfigHandler::get('navigation')}-->
		<!--{if !empty($navigation_config[pluginmenu])}-->
		 <!--{loop $navigation_config[pluginmenu]  $pmenus}-->
		 <!--{loop $pmenus $pmenu}-->
		 <!--{eval $pmenu[url]=jurl($pmenu[url]);}-->
		  <!--{if $pmenu[type] == 3}-->
		  <!--{if 'topic'==$this->require}-->
		  <li class="mypub current">
		  <!--{else}-->
		  <li class="mypub">
		  <!--{/if}-->
		  <a href="{$pmenu[url]}&require=topic" hidefocus="true" title="{$pmenu[name]}">{$pmenu[name]}</a></li>
		  <!--{/if}-->	
		 <!--{/loop}-->
		 <!--{/loop}-->
		 <!--{/if}-->
		 <!--{hook/global_left_nav3}-->
	  </ul>
	  <div class="blackBox"></div>
</div>

<a rel="nofollow" href="javascript:void(0);" class="leftNavBtn" title="{$_costr}左侧导航">左侧导航</a>
</div>

<script type="text/javascript">
$(function(){
	var	fixedLeft = $('.fixedLeft'),
		leftNavBtn = $('.leftNavBtn', fixedLeft),
		leftNav = $('.leftNav'),
		FBCLASS = 'fb-open',
		close = function(){
			fixedLeft.animate({
				left: '+=130'
			})
			fixedLeft.removeClass(FBCLASS);
			$('.leftNavBtn').attr('title','关闭左侧导航');
		},
		open = function(){
			fixedLeft.animate({
				left: '-=130'
			});
			fixedLeft.addClass(FBCLASS);
			$('.leftNavBtn').attr('title','展开左侧导航');
		};
	leftNavBtn.length && leftNavBtn.on('click', function(e){
		e.preventDefault();
		if(fixedLeft.hasClass(FBCLASS)){
			$.post("ajax.php?mod=view&code=left_nav",{display:1},function(){});close()
		}else{
			$.post("ajax.php?mod=view&code=left_nav",{display:0},function(){});open()
		}
	});

	if(window.location.hash){
		var nav = window.location.hash.replace("#","");
		$('.leftNav li.'+nav).addClass("current");
	}
});
</script>

